home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global gAbort
- puppetSound(0)
- set gAbort to 0
- put clickOn()
- set tempName2 to the name of cast the castNum of sprite clickOn()
- if item 2 of tempName2 <> "roll" then
- exit
- dontPassEvent()
- end if
- set tempName to chars(tempName2, 1, length(tempName2) - 5)
- set tempUp to the number of member tempName2
- set tempDown to the number of member (tempName & "_DN")
- set the castNum of sprite clickOn() to tempDown
- updateStage()
- sound stop 1
- sound stop 2
- puppetSound("clickSound")
- updateStage()
- repeat while the stillDown
- if rollOver(clickOn()) then
- if the castNum of sprite clickOn() <> tempDown then
- set the castNum of sprite clickOn() to tempDown
- updateStage()
- set gAbort to 0
- end if
- next repeat
- end if
- set the castNum of sprite clickOn() to tempUp
- updateStage()
- set gAbort to 1
- go(the frame)
- end repeat
- if not gAbort then
- puppetSound("clickSound")
- updateStage()
- repeat while soundBusy(1)
- nothing()
- end repeat
- updateStage()
- puppetSound(0)
- end if
- set the castNum of sprite clickOn() to tempUp
- updateStage()
- end
-
- on mouseUp
- global gAbort
- if gAbort = 0 then
- set tempJump to the name of cast the castNum of sprite clickOn()
- if tempJump <> "Tthings2" then
- exit
- end if
- set jumpName to chars(tempJump, 1, length(tempJump) - 5)
- clearPuppets(2, 12)
- go(the frame + 1)
- puppetSound(0)
- PlayDemoFrame(1, jumpName)
- end if
- end
-